package com.thon.dao.project;


import java.util.List;

import com.thon.dao.util.BaseDao;
import com.thon.dao.util.Page;
import com.thon.entity.project.Project;
import com.thon.entity.project.ProjectAttention;
import com.thon.entity.user.User;

/**
 * @file ProjectAttentionDao.java
 * @author Zemo
 * @mail zemochen@gmail.com
 * @data 2013年10月11日 上午11:32:30
 * @description: TODO
 */
public interface ProjectAttentionDao extends BaseDao<ProjectAttention> {
	
	public Long countAttention(int projectId);
	
	public Long hasAttention(Integer userId,Integer projectId);
	
	public Integer getProjectAttention(Integer userId,Integer projectId);
	
	public List<ProjectAttention> listAttentionByPro(Project project);

	public Page<ProjectAttention> findProjectAttentionByUser(Integer userId,
			Page<ProjectAttention> page);
	
}
